<?php defined( '_SYS' ) or die( 'No direct script access allowed' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $this->title;?></title>
<?php echo $this->headData; ?>
</head>
<body>
	<div id="border-top" class="h_green">
		<div>
			<div style="text-align:center; padding-right:250px;">
				<span class="title"><?php echo C_text::_('Metinfo Feedback System').' '.$SYS->config->item('version');?></span>
			</div>
		</div>
	</div>
	<div id="content-box">
		<div class="padding">
			<div id="element-box" style="margin: auto; width: 500px; padding-top: 50px; position:relative; padding-bottom: 100px;">
				<div class="t">
					<div class="t">
						<div class="t"></div>
					</div>
				</div>
				<div class="m">

					<h1><?php echo C_text::_('Administration Login');?></h1>
					<?php if($this->message) echo $this->message;?>
							<div id="section-box">
							
			<div class="t">
					<div class="t">
						<div class="t"></div>
					</div>
				</div>	
			<div class="m">	
		
	<form action="<?php echo WEBSELF; ?>/login" method="post" name="login" id="form-login" style="clear: both;" onSubmit="javascript: return check_main_login()">
	<p id="form-login-username">
		<label for="modlgn_username" style="position:relative;"><?php echo C_text::_('Username'); ?></label>
		<input name="login_name" id="login_name" type="text" class="inputbox" size="15" value="" />
	</p>

	<p id="form-login-password">
		<label for="modlgn_passwd" style="position:relative;"><?php echo C_text::_('Password'); ?></label>
		<input name="login_pass" id="login_pass" type="password" class="inputbox" size="15" value="" />
	</p>
	<?php if (extension_loaded('gd')) :?>
	<p id="form-security_code">		
		<label for="modlgn_code" style="position:relative;"><?php echo C_text::_('Verification'); ?></label>		
		<input name="security_code" id="security_code" type="text" class="inputbox" size="6" onKeyUp="pressCaptcha(this)"/>
		
		<?php echo '<img src="' . WEBSELF . '/login/code/width/100/height/30/characters/5" onclick=this.src="' . WEBSELF . '/login/code/width/100/height/30/characters/5/"+Math.random() style="cursor: pointer;" title="' . C_text::_('l_Tip') . '" />'; ?>
	</p>	
	<?php endif;?>
	<p id="form-login-lang" style="clear: both;">
		<label for="lang" style="position:relative;"><?php echo C_text::_('Language'); ?></label>
		<?php echo $this->langs; ?>
	</p>
	<div class="button_holder" style="position:relative;">
	<div class="button1">
		<div class="next">
			<a onclick="check_main_login();">
				<?php echo C_text::_( 'Login' ); ?></a>

		</div>
	</div>
	</div>
	<div class="clr"></div>	
	<input type="submit" class="login-submit" value="Log in" />
	<input type="hidden" name="task" value="check" />
	</form>
	<div class="clr"></div>
			</div>
			<div class="b">
				<div class="b">
		 			<div class="b"></div>
				</div>

			</div>
		</div>					
					<div id="metinfo"></div>
					<p style="text-align:center; width:150px; height:25px; line-height:25px; overflow:hidden;">
						<a href="http://www.metinfo.cn"  target="_blank" title="<?php echo C_text::_('Marketing Website');?>" style="font-family:Arial, Helvetica, sans-serif">MetInfo Co.,Ltd</a>
					</p>
					<div class="clr"></div>					
				</div>
				<div class="b">
					<div class="b">
						<div class="b"></div>
					</div>
				</div>
			</div>

		</div>
	</div>
	
	
	<div id="border-bottom">
	<div><div></div></div>
	</div>
	<div id="footer">
	<center>
	<p class="copyright" >
		Powered by <b><a href='http://www.metinfo.cn' target='_blank'>MetInfo</a></b> 漏2008- 2009 &nbsp;<a href='http://www.metinfo.cn' target='_blank'>www.MetInfo.cn</a>
	</p>
	</center>
	</div>

<?php echo $this->js; ?>
<script type="text/javascript">

function pressCaptcha(obj)//瀛楁瘝鍙樺ぇ鍐�
  {
    obj.value = obj.value.toUpperCase();
  }
  
 /* 
window.addEvent('domready',function() {

	// click to show
	console.log($('fb-modal').set);
	$('fb-trigger').addEvents({
			'mouseenter' : function() {  },
			'mouseleave' : function() {  }
	});


	$('fb-trigger').addEvent('click',function() {
		console.log($('fb-modal'));
		var original = el.getStyle('color');
				var morph = new Fx.Morph(el,{ 'duration':'300', 'link':'cancel' });
				el.addEvents({
					'mouseenter' : function() { morph.start({ 'color':'#ff8c00' }) },
					'mouseleave' : function() { morph.start({ 'color': original }) }
				});

		$('fb-modal').fade('in');
	});
});*/

</script>
</body>
</html>